<div class="page  page-full animation-fade page-menu">
    <div class="page-content">
        <div class="panel">
            <div class="panel-heading">
                <h3 class="panel-title">在线用户</h3>
            </div>
            <div class="panel-body">
                <div class="list-filter-form">
                    <@bolt.queryForm path="sys" id="online_query_form" dataGrid="sys_online_table"/>
                </div>
                <@dataGrid  id="sys_online_table"/>
            </div>
        </div>
    </div>

    <script type="application/javascript">

        $.namespace('Page.Online');

        Page.Online = function () {
            return {
                init: function () {
                },
                Operation:function (value, data) {
                    var $html = Bolt.StrBuilder();
                    $html.add('<div data-toggle="rowToolbar">');
                    $html.add('<a class="btn btn-info"  href="javascript:void(0);"  data-toggle="fun" data-fun="Page.Online.kickOut">下线</a>');
                    $html.add('</div>');
                    return $html.toString();
                },
                kickOut:function (data) {
                    console.info(data)
                    Bolt.ajax('doajax', {
                        data: {'key':data.key},
                        confirmMsg:"确认要执行此操作码?",
                        url: '${base}/admin/sys/online/kickOut',
                        loadingMask: true
                    });
                }
            }
        }();

        $(document).ready(function () {
            Page.Online.init();
        });
    </script>

</div>